<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/5/19
  Time: 15:25
  To change this template use File | Settings | File Templates.
--%>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/5/17
  Time: 10:10
  To change this template use File | Settings | File Templates.
--%>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/5/3
  Time: 16:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>管理员页面</title>
    <link rel="icon" href="<c:url value="/login.jpeg"/>"/>
    <link rel="stylesheet" href="<c:url value="/webjars/bootstrap/4.3.1/css/bootstrap.min.css"/>"/>
    <script src="<c:url value="/webjars/jquery/3.0.0/jquery.min.js"/>"></script>
    <link href="/docs/4.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
    <link rel="stylesheet" href="<c:url value="/webjars/font-awesome/4.7.0/css/font-awesome.min.css"/>">
</head>

<style>
    .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
    }

    @media (min-width: 768px) {
        .bd-placeholder-img-lg {
            font-size: 3.5rem;
        }
    }
</style>

<link href="/webshool/css/manager.css" rel="stylesheet">

<body>
<nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow">
    <a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">
        管理员页面———欢迎您：
        <span class="user"style="font: small 幼圆">
                <c:out value="${realUserName}"/>
            </span>
    </a>
    <input class="form-control form-control-dark w-100" type="text" placeholder="Search" aria-label="Search">
    <ul class="navbar-nav px-3">
        <li class="nav-item text-nowrap">
            <a class="nav-link" href="<c:url value="/manager/logout"/>">注销</a>
        </li>
    </ul>
</nav>

<div class="container-fluid">
    <div class="row">
        <nav class="col-md-2 d-none d-md-block bg-light sidebar">
            <div class="sidebar-sticky">
                <ul class="nav flex-column">
                    <li class="nav-item">
                        <a class="nav-link active" href="#">
                            <span data-feather="home"></span>
                            统计视图 <span class="sr-only">(current)</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <span data-feather="file"></span>
                            学生信息
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<c:url value="/manager/user/list"/>">
                            <span data-feather="file-text"></span>
                            用户管理
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <span data-feather="users"></span>
                            学生管理
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <span data-feather="bar-chart-2"></span>
                            签到信息
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <span data-feather="layers"></span>
                            信息查询
                        </a>
                    </li>
                </ul>

                <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
                    <span>Saved reports</span>
                    <a class="d-flex align-items-center text-muted" href="#">
                        <span data-feather="plus-circle"></span>
                    </a>
                </h6>
            </div>
        </nav>
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
            <br>
            <h3>
                用户信息--新增用户
                <a href="<c:url value="/manager/user/new"/>" class="btn btn-outline-secondary">新增用户</a>
            </h3>
            <c:if test="${sessionScope.msg != null}">
                <div class="alert alert-warning" role="alert">
                    <c:out value="${sessionScope.msg}"/>
                    <c:remove var="msg" scope="session"/>
                </div>
            </c:if>

            <form class="needs-validation" novalidate action="<c:url value="/manager/user/creat"/>" method="post">
                <div class="form-group">
                    <label for="loginId">登录账号</label>
                    <input type="text" class="form-control" name="loginId" id="loginId" placeholder="输入账号" required pattern="[1-9][0-9]{7}" value="<c:out value="${sessionScope.manager.loginid}"/>">
                    <small id="emailHelp" class="form-text text-muted">必须唯一</small>
                </div>
                <div class="form-group">
                    <label for="realName">真实姓名</label>
                    <input type="text" class="form-control" name="realName" id="realName" placeholder="输入姓名" required pattern="[\u4e00-\u9fa5]{2,5}" value="<c:out value="${sessionScope.manager.realname}"/>">
                </div>
                <div class="form-group">
                    <label for="pwd">密码</label>
                    <input type="password" class="form-control" name="pwd" id="pwd" placeholder="输入密码" required pattern=".{4,10}">
                </div>
                <div class="form-group">
                    <label for="checkPwd">确认密码</label>
                    <input type="password" class="form-control" name="checkPwd" id="checkPwd" placeholder="确认密码" required pattern=".{4,10}">
                </div>
                <div class="form-group">
                    <label for="lastLoginDt">选择时间</label>
                    <input type="datetime-local" class="form-control" name="lastLoginDt" id="lastLoginDt">
                </div>
                <button type="submit" class="btn btn-primary">提交</button>
            </form>

        </main>
    </div>
</div>
<script>
    (function () {
        'use strict';
        window.addEventListener('load', function () {
            // Fetch all the forms we want to apply custom Bootstrap validation styles to
            var forms = document.getElementsByClassName('needs-validation');
            // Loop over them and prevent submission
            var validation = Array.prototype.filter.call(forms, function (form) {
                form.addEventListener('submit', function (event) {
                    if (form.checkValidity() === false) {
                        event.preventDefault();
                        event.stopPropagation();
                    }
                    form.classList.add('was-validated');
                }, false);
            });
        }, false);
    })();
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/feather-icons/4.9.0/feather.min.js"></script>
<script src="/webshool/js/dashboard.js"></script>
</body>
</html>


